<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Admin Page</title>
</head>
<body>
<%@ include file="head.jsp"%>
	<FORM ACTION="/CA_Project/AdminEditor" Method="POST">

		<table cellpadding=4 cellspacing=2 border=0>
			<tr>
				<th width="45%">Staff ID:</th>
				<td><input type="text" name="UserID" value="${Users._userID}"></td>
				<td><input type="submit" name="Search" value="Search"></td>
			</tr>
			<tr>
				<th width="45%">Staff Name:</th>
				<td><input type="text" name="UserName" value="${Users._name}"></td>
				<th width="45%">Issued Password:</th>
				<td><input type="text" name="Password"></td>
				<td></td>
			</tr>
			<tr>
				<th width="45%">Gender</th>
				<c:choose>
					<c:when test="${Users._gender == 'f'}">
						<td><select name="Gender" style="height : 22px; width : 146px">
							<option value="f">Female</option>
							<option value="m">Male</option></select></td>					
					</c:when>
					<c:otherwise>
						<td><select name="Gender" style="height : 22px; width : 146px">
							<option value="m">Male</option>
							<option value="f">Female</option></select></td>						
					</c:otherwise>
				</c:choose>

				<th width="45%">Age:</th>
				<td><input type="text" name="UserAge" value="${Users._age}"></td>
			</tr>
			<tr>
				<th width="45%">Staff Type:</th>
				<td><select name="StafType" style="height : 22px; width : 146px">
					<option value="admin">Admin</option>
					<option value="manager">Manager</option>
					<option value="staff">Staff</option></select>
				</td>
				<th width="45%">Staff Role:</th>
				<td><select name="StaffRole" style="height : 22px; width : 146px">
					<option value="pro">Professional Staff</option>
					<option value="admin">Admin</option></select></td>
			</tr>
			<tr>
				<th width="45%">Supervisor:</th>
				<td><input type="text" name="SupervisorID" value="${Users._supID}"></td>
			</tr>
			<tr>
				<td style="text-align:right"><input type="submit" name="Add" value="Add"></td>
				<td style="text-align:center"><input type="submit" name="Delete" value="Delete"></td>
				<td><input type="submit" name="Edit" value="Edit"></td>								
			</tr>
			
		</table>
	</FORM>

</body>
</html>